package com.example.service.impl;

import com.example.dao.StudentMapper;
import com.example.pojo.Student;
import com.example.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentMapper studentMapper;
    @Override
    public Student selectById(Integer id) {
        Student student=studentMapper.selectById(id);
        return student;
    }
}
